function scrollTo(num, e){
    // var event = e || window.event;
    // event.stopPropagation();
    window.scrollTo(0,num)
}

function getScrollTop(){
    var scrollTop=0;
    if(document.documentElement&&document.documentElement.scrollTop){
        scrollTop=document.documentElement.scrollTop;
    }else if(document.body){
        scrollTop=document.body.scrollTop;
    }
    return scrollTop;
}


export default {
    scrollTo:scrollTo,
    getScrollTop:getScrollTop
}
